package pnu.creational.abstractfactorypattern;

public class AbstractFactoryPatternDemo {
	public static void main(String[] args) {
		ShapeFactory shapeFactory = (ShapeFactory) FactoryProducer.getFactory("SHAPE");
		
		Circle circle = (Circle) shapeFactory.getShape("CIRCLE");
		circle.draw();
		
		Rectangle rect = (Rectangle) shapeFactory.getShape("RECTANGLE");
		rect.draw();
		
		Square square = (Square) shapeFactory.getShape("SQUARE");
		square.draw();
		
		
	}
}
